var xiGua = require("../app/xiGua/watchVideo");
var daiShuDD = require("../app/daiShuDD/watchVideo");
var hongGuoMF = require("../app/hongGuoMF/watchVideo");
var { gUtils, deviceUtils, appUtils } = require("../utils");

function main() {
  var startTime = Date.now();
  while (true) {
    var hasExec = gUtils.hasExec(startTime);
    if (hasExec > 5 * 60 * 60) {
      break;
    }
    var apps = [xiGua, daiShuDD, hongGuoMF];
    for (var index = 0; index < apps.length; index++) {
      var app = apps[index];
      app.main();
      gUtils.sleep(2, 5);
    }
  }
  appUtils.closeRecent();
  deviceUtils.lockScreen();
}
Wang.main = main;
